package com.as.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Question entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "question", catalog = "calculate")
public class Question implements java.io.Serializable {

	// Fields

	private String questionid;
	private String qdetail;
	private String tanswer;
	private String fanswer1;
	private String fanswer2;
	private String fanswer3;
	private String answer;
	private Integer state;
	private Integer level;
	private String ansid;

	// Constructors

	/** default constructor */
	public Question() {
	}

	/** minimal constructor */
	public Question(String questionid) {
		this.questionid = questionid;
	}

	/** full constructor */
	public Question(String questionid, String qdetail, String tanswer,
			String fanswer1, String fanswer2, String fanswer3, String answer,
			Integer state, Integer level, String ansid) {
		this.questionid = questionid;
		this.qdetail = qdetail;
		this.tanswer = tanswer;
		this.fanswer1 = fanswer1;
		this.fanswer2 = fanswer2;
		this.fanswer3 = fanswer3;
		this.answer = answer;
		this.state = state;
		this.level = level;
		this.ansid = ansid;
	}

	// Property accessors
	@Id
	@Column(name = "questionid", unique = true, nullable = false, length = 30)
	public String getQuestionid() {
		return this.questionid;
	}

	public void setQuestionid(String questionid) {
		this.questionid = questionid;
	}

	@Column(name = "qdetail", length = 100)
	public String getQdetail() {
		return this.qdetail;
	}

	public void setQdetail(String qdetail) {
		this.qdetail = qdetail;
	}

	@Column(name = "tanswer", length = 100)
	public String getTanswer() {
		return this.tanswer;
	}

	public void setTanswer(String tanswer) {
		this.tanswer = tanswer;
	}

	@Column(name = "fanswer1", length = 100)
	public String getFanswer1() {
		return this.fanswer1;
	}

	public void setFanswer1(String fanswer1) {
		this.fanswer1 = fanswer1;
	}

	@Column(name = "fanswer2", length = 100)
	public String getFanswer2() {
		return this.fanswer2;
	}

	public void setFanswer2(String fanswer2) {
		this.fanswer2 = fanswer2;
	}

	@Column(name = "fanswer3", length = 100)
	public String getFanswer3() {
		return this.fanswer3;
	}

	public void setFanswer3(String fanswer3) {
		this.fanswer3 = fanswer3;
	}

	@Column(name = "answer", length = 100)
	public String getAnswer() {
		return this.answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	@Column(name = "state")
	public Integer getState() {
		return this.state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	@Column(name = "level")
	public Integer getLevel() {
		return this.level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	@Column(name = "ansid", length = 30)
	public String getAnsid() {
		return this.ansid;
	}

	public void setAnsid(String ansid) {
		this.ansid = ansid;
	}

}